StoreEngine\Shipping\ShippingZone A

Total Complexity 73
Dependencies 6
Dependents 2
Total lines 629
Lines of code 334
Logical lines of code 180
Comment lines 200
Methods 28
Properties 3

Methods 28

Method Rating Maintainability Complexity Lines of code
get_shipping_methods()
A
47 10 33
get_formatted_location()
A
46 7 37
read()
S
48 5 35
update()
S
54 5 20
add_shipping_method()
S
49 4 31
add_location()
S
58 4 14
clear_locations()
S
60 4 13
save_locations()
S
53 3 23
create()
S
56 3 18
read_zone_locations()
S
60 3 14
delete_shipping_method()
S
60 3 12
set_zone_locations()
S
73 2 5
get_methods()
S
65 2 9
save()
S
69 2 7
generate_zone_name()
S
69 2 7
set_locations()
S
70 2 6
set_zone_name()
S
79 1 3
is_valid_location_type()
S
65 1 10
get_zone_name()
S
79 1 3
get_zone_order()
S
79 1 3
get_zone_locations()
S
79 1 3
location_is_country()
S
80 1 3
location_is_postcode()
S
80 1 3
location_is_state()
S
80 1 3
set_zone_order()
S
79 1 3
location_is_continent()
S
80 1 3
delete()
S
75 1 4
prepare_for_db()
S
66 1 9